package com.nancy.java_design.decorator.demo1;

/**
 * 装饰器模式
 * 具体的构建类：面条
 */
public class FastFoodNoodle extends FastFood {

    public FastFoodNoodle() {
        super(15, "面条");
    }

    @Override
    public float cost() {
        return getPrice();
    }
}
